'''实现函数init_edge,加载边的情况'''
import pandas as pd
def init_edge(file):
    edge=[]
    with open(file,'r',encoding='utf-8'):
        lines=pd.read_csv(file)
    for i in range(len(lines)):
        edge.append(tuple(lines.loc[i]))
    return edge


    